import { axios } from "@/utils/request";
const api = {
    login: '/login/index',
    logout: '/login/logout',

}

/**
 * 登录
 * @param {*} data
 */
export function login(data) {
    return axios({
        url: api.login,
        method: 'post',
        data
    })
}
/**
 * 退出
 * @param {*} data
 */
export function logout(data) {
    return axios({
        url: api.logout,
        method: 'post',
        data
    })
}